The design says "when a network cable is connected", not
"When a network cable is connected and the link is up and we
have an IP etc. etc." (which is what ACTIVATED would imply).
https://bugzilla.gnome.org/show_bug.cgi?id=723570
this.item.menu.addMenuItem(createSettingsAction(_("Wired Settings"), device));
},
- _isConnected: function() {
- if (!this._device.active_connection)
- return false;
-
- let state = this._device.active_connection.state;
- return state >= NetworkManager.ActiveConnectionState.ACTIVATING;
+ _hasCarrier: function() {
+ if (this._device instanceof NMClient.DeviceEthernet)
+ return this._device.carrier;
+ else
+ return true;
},
_sync: function() {
- this.item.actor.visible = this._isConnected();
+ this.item.actor.visible = this._hasCarrier();
this.parent();
},